// 食物类 
import Rect from './Rect.js';
export default class Food {
    constructor() {
        this.rect = new Rect(this.randomNum(0, 12) * 50, this.randomNum(0, 12) * 50, "green");
    }
    randomNum(min, max) {
        return parseInt(Math.random() * (max - min)) + min;
    }
}
